package com.github.dice.service;

import com.github.dice.dto.JoinRoomDTO;
import com.github.dice.dto.OpenRoomDTO;
import com.github.dice.dto.RoomDTO;
import com.github.dice.entity.Room;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.annotation.Nonnull;
import java.util.List;

public interface IRoomService extends IService<Room> {

    Room addRoom(Room room);

    Room getRoomByNumber(@Nonnull String roomNumber);

    List<Room> getRoomListByRoomOwnerName(String roomOwnerName);

    RoomDTO joinRoom(JoinRoomDTO joinRoomDTO);

    RoomDTO openRoom(OpenRoomDTO openRoomDTO);

    RoomDTO getRoomDTOByRoomNumber(@Nonnull String roomNumber);

    void delRoom(@Nonnull String roomNumber);

}
